<form nz-form [formGroup]="formGroup">
    <nz-form-item class="f-item">
        <nz-form-label [nzSpan]="7" nzRequired class="f-label">部门名称</nz-form-label>
        <nz-form-control [nzSpan]="12" nzErrorTip="请输入名称">
            <input nz-input formControlName="name" placeholder="请输入名称" class="f-full" />
        </nz-form-control>
    </nz-form-item>
    <nz-form-item class="f-item">
        <nz-form-label [nzSpan]="7" class="f-label">部门负责人</nz-form-label>
        <nz-form-control [nzSpan]="12">
            <nz-select nzShowSearch nzAllowClear nzPlaceHolder="选择部门负责人" formControlName="leaderPerson">
                <nz-option [nzLabel]="item.nodeName" [nzValue]="item.objectId" *ngFor="let item of userList">
                </nz-option>
            </nz-select>
        </nz-form-control>
    </nz-form-item>
    <nz-form-item class="f-item">
        <nz-form-label [nzSpan]="7" class="f-label">部门职责</nz-form-label>
        <nz-form-control [nzSpan]="12" nzErrorTip="请输入名称">
            <textarea rows="4" nz-input formControlName="description"></textarea>
        </nz-form-control>
    </nz-form-item>
</form>

<div class="floor">
    <button nz-button nzType="default" (click)="cancel()">取消</button>
    <button nz-button nzType="primary" (click)="ok()">确定</button>
</div>